package com.serviceImpl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dao.EmployeeDao;
import com.model.Employee;
import com.service.EmployeeService;
@Component("employeeService")
public class EmployeeServiceImpl implements EmployeeService{
	
	public Employee getEmployee(String em_serialNumber) {
		return this.employeeDao.getEmployee(em_serialNumber);
	}
	public List<Employee> getEmployeeList(String hql) {
		return this.employeeDao.getEmployeeList(hql);
	}

	private EmployeeDao employeeDao;

	public EmployeeDao getEmployeeDao() {
		return employeeDao;
	}
	@Resource
	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}

	public void addEmployee(Employee employee) {
		employeeDao.addEmployee(employee);
	}

	public void deleteEmployee(Employee employee) {
		employeeDao.deleteEmployee(employee);
	}

	public boolean exists(Employee employee) {
		return employeeDao.exists(employee);
	}

	public void updateEmployee(Employee employee) {
		employeeDao.updateEmployee(employee);
	}
    
}
